<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="UTF-8" />
    <title>Input OTP - Color</title>
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
    />
    <link href="../../../../../css/ionic.bundle.css" rel="stylesheet" />
    <link href="../../../../../scripts/testing/styles.css" rel="stylesheet" />
    <script src="../../../../../scripts/testing/scripts.js"></script>
    <script nomodule src="../../../../../dist/ionic/ionic.js"></script>
    <script type="module" src="../../../../../dist/ionic/ionic.esm.js"></script>

    <style>
      h2 {
        text-align: center;
      }

      .grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        grid-row-gap: 20px;
        grid-column-gap: 20px;
      }
    </style>
  </head>

  <body>
    <ion-app>
      <ion-header>
        <ion-toolbar>
          <ion-title>Input OTP - Color</ion-title>
        </ion-toolbar>
      </ion-header>

      <ion-content class="ion-padding">
        <div class="grid">
          <div class="grid-item">
            <h2>Outline Colors</h2>
            <ion-input-otp value="12" color="primary"></ion-input-otp>
            <ion-input-otp value="12" color="secondary"></ion-input-otp>
            <ion-input-otp value="12" color="tertiary"></ion-input-otp>
            <ion-input-otp value="12" color="success"></ion-input-otp>
            <ion-input-otp value="12" color="warning"></ion-input-otp>
            <ion-input-otp value="12" color="danger"></ion-input-otp>
            <ion-input-otp value="12" color="light"></ion-input-otp>
            <ion-input-otp value="12" color="medium"></ion-input-otp>
            <ion-input-otp value="12" color="dark"></ion-input-otp>
          </div>

          <div class="grid-item">
            <h2>Solid Colors</h2>
            <ion-input-otp value="12" fill="solid" color="primary"></ion-input-otp>
            <ion-input-otp value="12" fill="solid" color="secondary"></ion-input-otp>
            <ion-input-otp value="12" fill="solid" color="tertiary"></ion-input-otp>
            <ion-input-otp value="12" fill="solid" color="success"></ion-input-otp>
            <ion-input-otp value="12" fill="solid" color="warning"></ion-input-otp>
            <ion-input-otp value="12" fill="solid" color="danger"></ion-input-otp>
            <ion-input-otp value="12" fill="solid" color="light"></ion-input-otp>
            <ion-input-otp value="12" fill="solid" color="medium"></ion-input-otp>
            <ion-input-otp value="12" fill="solid" color="dark"></ion-input-otp>
          </div>

          <div class="grid-item">
            <h2>Disabled</h2>
            <ion-input-otp value="12" color="tertiary" disabled>Outline</ion-input-otp>
            <ion-input-otp value="12" color="tertiary" fill="solid" disabled>Solid</ion-input-otp>

            <h2>Readonly</h2>
            <ion-input-otp value="12" color="tertiary" readonly>Outline</ion-input-otp>
            <ion-input-otp value="12" color="tertiary" fill="solid" readonly>Solid</ion-input-otp>
          </div>

          <div class="grid-item">
            <h2>Invalid / Touched</h2>
            <ion-input-otp value="12" color="tertiary" class="ion-invalid ion-touched">Outline</ion-input-otp>
            <ion-input-otp value="12" color="tertiary" fill="solid" class="ion-invalid ion-touched"
              >Solid</ion-input-otp
            >

            <h2>Valid / Focused</h2>
            <ion-input-otp value="12" color="tertiary" class="ion-valid has-focus">Outline</ion-input-otp>
            <ion-input-otp value="12" color="tertiary" fill="solid" class="ion-valid has-focus">Solid</ion-input-otp>
          </div>
        </div>
      </ion-content>
    </ion-app>
  </body>
</html>
